Websydian v6.1 online documentationOnline documentation - Websydian v6.5

Problem - Unable to execute the CreateSchema function in Java

Severity Low
Product Websydian TransacXML
Websydian version 5.5 and later
Plex version All
Platform Java
Category XML Schema Generation
Problem

When generating XML schemas using the CreateSchema function, the PromptForFileName panel shows, but then terminates without any errors or messages.

Answer

A bug in the Java runtime for Plex 5.5 has the effect that after the panel is loaded, the panel function continues to execute the statements after the Events Handler.

In this case this means that the PromptForFileName function will return to the caller (CreateSchema) even though no panel events have been activated.

The bug has been reported to CA (issue 1370 6754).

Workaround

Create a function that calls CreateSchema and supply the file name as input to the CreateSchema function (parameter Document<FileName>).